<!--
 * @Description: 
 * @version: 
 * @Author: liurui
 * @Date: 2024-02-18 15:10:22
 * @LastEditors: 
 * @LastEditTime: 2024-02-18 15:23:21
-->
<template>
    <div>

    </div>
</template>

<script setup lang="ts">
// 传入一个类型，判断它是否为 never 类型。如果是返回true，否则返回false。

type A = IsNever<never>; // expected to be true
type B = IsNever<undefined>; // expected to be false
type C = IsNever<null>; // expected to be false
type D = IsNever<[]>; // expected to be false
type E = IsNever<number>; // expected to be false

// 想要消除分发特性，用 [] 包裹下就行
type IsNever<T> = [T] extends [never] ? true : false;
</script>

<style scoped>

</style>